#!/usr/bin/python
# -*- coding=utf-8 -*-

import os
from shell_util import alias_config

alias_config_pattern="alias %s=%s"

basic_aliases={
	'll':'ls -alF',
	'la':'ls -A',
	'l':'ls -CF',
	'llh':'ls -lh',
	'gvim':'vim -g',


	'tmuxns':'tmux -2 new -s',

	'fs':'fc -s',
	'updatesys':'sudo apt-get update; sudo apt-get upgrade',

	'gitaa':'git add -A',
	'gitadd':'git add',
	'gitbranch':'git branch',
	'gitcheckout':'git checkout',
	'gitcommit':'git commit -m',
	'gitps':'git push origin master',
	'gitplo':'git pull origin master',
	'gitfo':'git fetch origin',
	'gitups':'git add -A; git commit -m "default updated"; git push origin master;',
	'gitupl':'git fetch origin; git pull origin master;',
}

alias_config(basic_alias)


common_paths_alias={

  "cddwn":"cd $HOME/Downloads",
  "cddoc":"cd $HOME/Documents",
  "cddes":"cd $HOME/Desktop",
  "cdvid":"cd $HOME/Videos",
  "cdmus":"cd $HOME/Music",
  "cdpic":"cd $HOME/Pictures"
}

alias_config(common_paths_alias)



#config customized path
__env_path_config(){

    if [[ -z "${SYSTEM_GIT_HOME}" ]]; then
        SYSTEM_GIT_HOME="$HOME/gitworkspace"
    fi

    PATH="$PATH:$SYSTEM_GIT_HOME/.dotfiles/bin"
}

__base_alias_config
__common_path_config
__env_path_config






